package com.webservice.xmloper.codeUpdate;

import java.io.ByteArrayInputStream;
import java.io.InputStream;

import com.thoughtworks.xstream.XStream;

public class CodeUpdateXmlOper {
	
	/**
	 * 解析代码发布指令xml
	 */
	public static CodeUpdateXml parseCodeUpdateXml(String xmlString) throws Exception{
		XStream xs = new XStream();
		xs.processAnnotations(CodeUpdateXml.class);
		InputStream myIn=new ByteArrayInputStream(xmlString.getBytes());
		return (CodeUpdateXml) xs.fromXML(myIn);
	}
}
